<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/WEB-TAG/platForm.tld" prefix="PF"%>
<!--查询条件表单-->
<div class="easyui-layout" data-options="fit:true">
	<div class="TableTitle" data-options="region:'north',border:false">
		<c:if test="${pageset.pageType==1}">新增${JSP_Messager_Title}记录</c:if>
		<c:if test="${pageset.pageType==2}">修改${JSP_Messager_Title}记录</c:if>
		<c:if test="${pageset.pageType==0}">浏览${JSP_Messager_Title}记录</c:if>
	</div>
	<div data-options="region:'center'">
		<form id="dom_formTitle">
			<input type="hidden" id="entity_id" name="entity.id"
				value="${entity.id}">
			<c:if test="${pageset.pageType==1}">
				<input type="hidden" id="QUERYID" name="entity.queryid"
					value="${ids}">
			</c:if>
			<table class="editTable">
				<tr>
					<td class="title">
						标题文本:
					</td>
					<td>
						<input type="text" style="width: 120px;"
							class="easyui-validatebox"
							data-options="required:true,validType:[,'maxLength[32]']"
							id="entity_title" name="entity.title" value="${entity.title}">
					</td>
					<td class="title">
						字段名称:
					</td>
					<td>
						<input type="text" style="width: 120px;"
							class="easyui-validatebox"
							data-options="required:true,validType:[,'maxLength[32]']"
							id="entity_fieldname" name="entity.fieldname"
							value="${entity.fieldname}">
					</td>
				</tr>
				<tr>
					<td class="title">
						转义类型:
					</td>
					<td>
						<select name="entity.dictype" id="entity_dictype"
							style="width: 120px;" val="${entity.dictype}">
							<option value="0">
								无
							</option>
							<option value="1">
								枚举[type1:text1,type2:text2,...]
							</option>
							<option value="2">
								数据字典[key]
							</option>
							<option value="3">
								日期[yyyyMMddHHmmss]
							</option>
						</select>
					</td>
					<td class="title">
						转义参数:
					</td>
					<td>
						<input type="text" style="width: 120px;"
							class="easyui-validatebox"
							data-options="validType:[,'maxLength[128]']" id="entity_dicpara"
							name="entity.dicpara" value="${entity.dicpara}">
					</td>
				</tr>
				<tr>
					<td class="title">
						是否可以排序:
					</td>
					<td>
						<select name="entity.sortable" id="entity_sortable"
							style="width: 120px;" val="${entity.sortable}">
							<option value="0">
								否
							</option>
							<option value="1">
								是
							</option>
						</select>
					</td>
					<td class="title">
						排序数序:
					</td>
					<td>
						<select name="entity.sorttype" id="entity_sorttype"
							style="width: 120px;" val="${entity.sorttype}">
							<option value="DESC">
								DESC
							</option>
							<option value="ASC">
								ASC
							</option>
						</select>
					</td>
				</tr>
				<tr>
					<td class="title">
						宽度:
					</td>
					<td>
						<input type="text" style="width: 120px;"
							class="easyui-validatebox"
							data-options="required:true,validType:['integer','maxLength[5]']"
							id="entity_width" name="entity.width"
							value="${entity.width==null?'80':entity.width}">
					</td>
					<td class="title">
						显示排序:
					</td>
					<td>
						<input type="text" style="width: 120px;"
							class="easyui-validatebox"
							data-options="required:true,validType:['integer','maxLength[5]']"
							id="entity_sort" name="entity.sort" value="${entity.sort}">
					</td>
				</tr>
				<tr>
					<td class="title">
						对齐类型:
					</td>
					<td>
						<select name="entity.aligntype" id="entity_aligntype"
							style="width: 120px;" val="${entity.aligntype}">
							<option value="left">
								左
							</option>
							<option value="right">
								右
							</option>
							<option value="center">
								居中
							</option>
						</select>
					</td>
					<td class="title">
						是否冻结:
					</td>
					<td>
						<select name="entity.fixis" id="entity_fixis"
							style="width: 120px;" val="${entity.fixis}">
							<option value="0">
								否
							</option>
							<option value="1">
								是
							</option>
						</select>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div data-options="region:'south',border:false">
		<div class="div_button" style="text-align: center; padding: 4px;">
			<c:if test="${pageset.pageType==1}">
				<a id="dom_add_entityTitle" href="javascript:void(0)"
					iconCls="icon-save" class="easyui-linkbutton">增加</a>
			</c:if>
			<c:if test="${pageset.pageType==2}">
				<a id="dom_edit_entityTitle" href="javascript:void(0)"
					iconCls="icon-save" class="easyui-linkbutton">修改</a>
			</c:if>
			<a id="dom_cancle_formTitle" href="javascript:void(0)"
				iconCls="icon-cancel" class="easyui-linkbutton"
				style="color: #000000;">取消</a>
		</div>
	</div>
</div>
<script type="text/javascript">
	var submitAddActionTitle = 'admin/FarmFormsTitleaddCommit.do';
	var submitEditActionTitle = 'admin/FarmFormsTitleeditCommit.do';
	var currentPageTypeTitle = '${pageset.pageType}';
	var submitFormTitle;
	$(function() {
		//表单组件对象
		submitFormTitle = $('#dom_formTitle').SubmitForm( {
			pageType : currentPageTypeTitle,
			grid : gridTitle,
			currentWindowId : 'winTitle'
		});
		//关闭窗口
		$('#dom_cancle_formTitle').bind('click', function() {
			$('#winTitle').window('close');
		});
		//提交新增数据
		$('#dom_add_entityTitle').bind('click', function() {
			submitFormTitle.postSubmit(submitAddActionTitle);
		});
		//提交修改数据
		$('#dom_edit_entityTitle').bind('click', function() {
			submitFormTitle.postSubmit(submitEditActionTitle);
		});
	});
	//-->
</script>